package com.ccsc.auth.service;

import com.ccsc.auth.entity.Systems;
import com.ccsc.auth.utils.DataMap;
import com.ccsc.auth.utils.Page;

import java.util.List;

/**
 * 系统service
 * Created by yyangs on 2017/2/10.
 */
public interface SystemsService {

    List<Systems> getAllSystemses() throws Exception;       						                                    //获取全部系统列表
    List<Systems> getSystemsesByStatus(Integer status) throws Exception;   			                                    //根据系统状态查系统列表

    Page getSystemssByPage(DataMap params) throws Exception;					                                        //分页并根据条件查询系统列表
    Page getSystemssByPage(Systems systems,DataMap params) throws Exception;					                        //分页并根据条件查询系统列表

    Systems getSystemsById(Integer id) throws Exception;   						                                        //根据系统ID查系统信息
    Systems getSystemsByIdentifier(String identifier) throws Exception;   						                    //根据系统标识符查系统信息
    Systems getSystemsByResourceId(Integer resourceId) throws Exception;                                                //查询拥有某一资源的系统

    Integer createSystems(Systems systems) throws Exception;  					        	                            //添加系统
    Integer updateSystems(Systems systems) throws Exception;   		   		            	                            //修改系统
    Integer deleteSystemsById(Integer id) throws Exception; 					                                        //删除系统

    Integer activeSystems(Integer id) throws Exception;							                                        //激活系统
    Integer withdrawSystems(Integer id) throws Exception;						                                        //注销系统
    Integer batchActiveSystems(List<Integer> ids) throws Exception;				                                        //批量激活系统
    Integer batchWithdrawSystems(List<Integer> ids) throws Exception;			                    	                //批量注销系统
}
